package com.gui.connect;

import com.gui.util.ReplyType;

import java.util.ArrayList;

/**
 * Created by Gui on 2017/7/22.
 */
public class RedisReply {

    private ReplyType type;
    private Object value;

    public RedisReply(ReplyType type, Object value) {
        this.type = type;
        this.value = value;
    }

    public ReplyType getType() {
        return type;
    }

    public Object getReply() {
        return value;
    }

    @Override
    public String toString() {
        return "RedisReply{" +
                "type=" + type.name() +
                ", value=" + value +
                '}';
    }
}
